#!/usr/bin/env python
# coding=utf-8

# 比较两个文件中的CVE列表

cves = set([x.split(",")[5] for x in open("collection.csv").readlines()[1:]])

cves2 = set([x.split(",")[1] for x in open("result_for_warn_log3.csv").readlines()[1:]])

print cves & cves2